home *** CD-ROM | disk | FTP | other *** search
/ IRIX Base Documentation 1998 November / IRIX 6.5.2 Base Documentation November 1998.img / usr / share / catman / u_man / cat1 / X11 / xinit.z / xinit
Text File  |  1998-10-20  |  10KB  |  199 lines

  1.  
  2.  
  3.  
  4.      XXXXIIIINNNNIIIITTTT((((1111))))           XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....3333))))            XXXXIIIINNNNIIIITTTT((((1111))))
  5.  
  6.  
  7.  
  8.      NNNNAAAAMMMMEEEE
  9.           xinit - X Window System initializer
  10.  
  11.      SSSSYYYYNNNNOOOOPPPPSSSSIIIISSSS
  12.           xxxxiiiinnnniiiitttt [ [ _c_l_i_e_n_t ] _o_p_t_i_o_n_s ] [ -------- [ _s_e_r_v_e_r ] [ _d_i_s_p_l_a_y ]
  13.           _o_p_t_i_o_n_s ]
  14.  
  15.      DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
  16.           The _x_i_n_i_t program is used to start the X Window System
  17.           server and a first client program on systems that cannot
  18.           start X directly from /_e_t_c/_i_n_i_t or in environments that use
  19.           multiple window systems.  When this first client exits,
  20.           _x_i_n_i_t will kill the X server and then terminate.
  21.  
  22.           If no specific client program is given on the command line,
  23.           _x_i_n_i_t will look for a file in the user's home directory
  24.           called ._x_i_n_i_t_r_c to run as a shell script to start up client
  25.           programs.  If no such file exists, _x_i_n_i_t will use the
  26.           following as a default:
  27.  
  28.                xterm  -geometry  +1+1  -n  login  -display  :0
  29.  
  30.  
  31.           If no specific server program is given on the command line,
  32.           _x_i_n_i_t will look for a file in the user's home directory
  33.           called ._x_s_e_r_v_e_r_r_c to run as a shell script to start up the
  34.           server.  If no such file exists, _x_i_n_i_t will use the
  35.           following as a default:
  36.  
  37.                X  :0
  38.  
  39.           Note that this assumes that there is a program named _X in
  40.           the current search path.  However, servers are usually named
  41.           _X_d_i_s_p_l_a_y_t_y_p_e where _d_i_s_p_l_a_y_t_y_p_e is the type of graphics
  42.           display which is driven by this server.  The site
  43.           administrator should, therefore, make a link to the
  44.           appropriate type of server on the machine, or create a shell
  45.           script that runs _x_i_n_i_t with the appropriate server.
  46.  
  47.           An important point is that programs which are run by
  48.           ._x_i_n_i_t_r_c should be run in the background if they do not exit
  49.           right away, so that they don't prevent other programs from
  50.           starting up.  However, the last long-lived program started
  51.           (usually a window manager or terminal emulator) should be
  52.           left in the foreground so that the script won't exit (which
  53.           indicates that the user is done and that _x_i_n_i_t should exit).
  54.  
  55.           An alternate client and/or server may be specified on the
  56.           command line.  The desired client program and its arguments
  57.           should be given as the first command line arguments to
  58.           _x_i_n_i_t.  To specify a particular server command line, append
  59.           a double dash (--) to the _x_i_n_i_t command line (after any
  60.  
  61.  
  62.  
  63.      Page 1                                          (printed 4/30/98)
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.      XXXXIIIINNNNIIIITTTT((((1111))))           XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....3333))))            XXXXIIIINNNNIIIITTTT((((1111))))
  71.  
  72.  
  73.  
  74.           client and arguments) followed by the desired server
  75.           command.
  76.  
  77.           Both the client program name and the server program name
  78.           must begin with a slash (/) or a period (.).  Otherwise,
  79.           they are treated as an arguments to be appended to their
  80.           respective startup lines.  This makes it possible to add
  81.           arguments (for example, foreground and background colors)
  82.           without having to retype the whole command line.
  83.  
  84.           If an explicit server name is not given and the first
  85.           argument following the double dash (--) is a colon followed
  86.           by a digit, _x_i_n_i_t will use that number as the display number
  87.           instead of zero.  All remaining arguments are appended to
  88.           the server command line.
  89.  
  90.      EEEEXXXXAAAAMMMMPPPPLLLLEEEESSSS
  91.           Below are several examples of how command line arguments in
  92.           _x_i_n_i_t are used.
  93.  
  94.           xxxxiiiinnnniiiitttt   This will start up a server named _X and run the
  95.                   user's ._x_i_n_i_t_r_c, if it exists, or else start an
  96.                   _x_t_e_r_m.
  97.  
  98.           xxxxiiiinnnniiiitttt -------- ////uuuussssrrrr////XXXX11111111RRRR6666////bbbbiiiinnnn////XXXXqqqqddddssssssss  ::::1111
  99.                   This is how one could start a specific type of
  100.                   server on an alternate display.
  101.  
  102.           xxxxiiiinnnniiiitttt ----ggggeeeeoooommmmeeeettttrrrryyyy ====88880000xxxx66665555++++11110000++++11110000 ----ffffnnnn 8888xxxx11113333 ----jjjj ----ffffgggg wwwwhhhhiiiitttteeee ----bbbbgggg nnnnaaaavvvvyyyy
  103.                   This will start up a server named _X, and will append
  104.                   the given arguments to the default _x_t_e_r_m command.
  105.                   It will ignore ._x_i_n_i_t_r_c.
  106.  
  107.           xxxxiiiinnnniiiitttt ----eeee wwwwiiiiddddggggeeeettttssss -------- ....////XXXXssssuuuunnnn ----llll ----cccc
  108.                   This will use the command ./_X_s_u_n -_l -_c to start the
  109.                   server and will append the arguments -_e _w_i_d_g_e_t_s to
  110.                   the default _x_t_e_r_m command.
  111.  
  112.           xxxxiiiinnnniiiitttt ////uuuussssrrrr////uuuuccccbbbb////rrrrsssshhhh ffffaaaasssstttthhhhoooosssstttt ccccppppuuuuppppiiiigggg ----ddddiiiissssppppllllaaaayyyy wwwwssss::::1111 --------  ::::1111 ----aaaa 2222 ----tttt 5555
  113.                   This will start a server named _X on display 1 with
  114.                   the arguments -_a _2 -_t _5.  It will then start a
  115.                   remote shell on the machine ffffaaaasssstttthhhhoooosssstttt in which it
  116.                   will run the command _c_p_u_p_i_g, telling it to display
  117.                   back on the local workstation.
  118.  
  119.           Below is a sample ._x_i_n_i_t_r_c that starts a clock, several
  120.           terminals, and leaves the window manager running as the
  121.           ``last'' application.  Assuming that the window manager has
  122.           been configured properly, the user then chooses the ``Exit''
  123.           menu item to shut down X.
  124.  
  125.                   xrdb -load $HOME/.Xresources
  126.  
  127.  
  128.  
  129.      Page 2                                          (printed 4/30/98)
  130.  
  131.  
  132.  
  133.  
  134.  
  135.  
  136.      XXXXIIIINNNNIIIITTTT((((1111))))           XXXX VVVVeeeerrrrssssiiiioooonnnn 11111111 ((((RRRReeeelllleeeeaaaasssseeee 6666....3333))))            XXXXIIIINNNNIIIITTTT((((1111))))
  137.  
  138.  
  139.  
  140.                   xsetroot -solid gray &
  141.                   xclock -g 50x50-0+0 -bw 0 &
  142.                   xload -g 50x50-50+0 -bw 0 &
  143.                   xterm -g 80x24+0+0 &
  144.                   xterm -g 80x24+0-0 &
  145.                   twm
  146.  
  147.           Sites that want to create a common startup environment could
  148.           simply create a default ._x_i_n_i_t_r_c that references a site-wide
  149.           startup file:
  150.  
  151.                   #!/bin/sh
  152.                   . /usr/local/lib/site.xinitrc
  153.  
  154.           Another approach is to write a script that starts _x_i_n_i_t with
  155.           a specific shell script.  Such scripts are usually named
  156.           _x_1_1, _x_s_t_a_r_t, or _s_t_a_r_t_x and are a convenient way to provide a
  157.           simple interface for novice users:
  158.  
  159.                   #!/bin/sh
  160.                   xinit /usr/local/lib/site.xinitrc -- /usr/X11R6/bin/X bc
  161.  
  162.  
  163.      EEEENNNNVVVVIIIIRRRROOOONNNNMMMMEEEENNNNTTTT VVVVAAAARRRRIIIIAAAABBBBLLLLEEEESSSS
  164.           DDDDIIIISSSSPPPPLLLLAAAAYYYY        This variable gets set to the name of the
  165.                          display to which clients should connect.
  166.  
  167.           XXXXIIIINNNNIIIITTTTRRRRCCCC        This variable specifies an init file
  168.                          containing shell commands to start up the
  169.                          initial windows.  By default, ._x_i_n_i_t_r_c in the
  170.                          home directory will be used.
  171.  
  172.      FFFFIIIILLLLEEEESSSS
  173.           ._x_i_n_i_t_r_c       default client script
  174.  
  175.           _x_t_e_r_m          client to run if ._x_i_n_i_t_r_c does not exist
  176.  
  177.           ._x_s_e_r_v_e_r_r_c     default server script
  178.  
  179.           _X              server to run if ._x_s_e_r_v_e_r_r_c does not exist
  180.  
  181.      SSSSEEEEEEEE AAAALLLLSSSSOOOO
  182.           _X(1), _s_t_a_r_t_x(1), _X_s_e_r_v_e_r(1), _x_t_e_r_m(1)
  183.  
  184.      AAAAUUUUTTTTHHHHOOOORRRR
  185.           Bob Scheifler, MIT Laboratory for Computer Science
  186.  
  187.  
  188.  
  189.  
  190.  
  191.  
  192.  
  193.  
  194.  
  195.      Page 3                                          (printed 4/30/98)
  196.  
  197.  
  198.  
  199.